//
//  SingCollectionViewCell.m
//  GSG
//
//  Created by gaox on 15/4/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SingCollectionViewCell.h"

@implementation SingCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
        self.myImageView.layer.cornerRadius = 15;
        self.myImageView.contentMode = UIViewContentModeScaleAspectFill;
        self.myImageView.autoresizesSubviews = YES;
        self.myImageView.clipsToBounds = YES;
//        self.myImageView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        
        
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height, self.contentView.frame.size.width, 40)];
        //        self.myLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
        //        self.myLabel.textAlignment = NSTextAlignmentCenter;
        self.myLabel.numberOfLines = 2;
        self.myLabel.tintColor = [UIColor whiteColor];
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
        
        self.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bujing.png"]];
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    
    
}
@end
